package com.cat.test.test01;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * @author 曲大人的喵
 * @description
 * @create 2025/10/28 12:49
 * @since JDK17
 */

public class Solution06 {
    public static void main(String[] args) {
        List<Integer> collect = IntStream.range(1, 11).mapToObj(Integer::valueOf).collect(Collectors.toList());
        System.out.println(collect);
        collect.forEach(System.out::println);
        Map<Integer, Integer> map = IntStream.range(1, 11).mapToObj(Integer::valueOf).collect(Collectors.toMap(x -> x, x -> x));
        map.entrySet().forEach(System.out::println);


    }
}
